package com.xu.cloud.common.desensitization;

/**
 * 数据脱敏规则工厂
 *
 * @author xuguan
 * @since 2025/3/4
 */
public interface IDeSensitizationRuleFactory {

    /**
     * 获取数据脱敏规则
     */
    IDesensitizationRule getRule(SensitizationEnum sensitizationEnum);

    /**
     * 添加数据脱敏规则
     */
    default void addRule(SensitizationEnum sensitizationEnum, IDesensitizationRule rule) {
        // nop
    }
}
